﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace RPG_The_Game.Objetos
{
    class Cachorro:Sprite
    {

        animacao cachorro;
        public animacao _cachorro;

        public static Random random = new Random();

        //public static List<Cachorro> listaCachorros = new List<Cachorro>();

        public Cachorro(Texture2D textura)
            :base(textura)
        {

            _cachorro = new animacao();
            _cachorro.qtd_quadros = 4;
            _cachorro.quadros_seg = 4;
            _cachorro.Y = 0;
            _cachorro.quadro_X = textura.Width / _cachorro.qtd_quadros;
            _cachorro.quadro_Y = textura.Height;
            _cachorro.nome = "TOM";
            destino = new Rectangle(0, 0, _cachorro.quadro_X, _cachorro.quadro_Y);

            posicao.X = random.Next(5, 600);
            posicao.Y = random.Next(5, 600);
        }

        public override void Update(GameTime gameTime)
        {
            //throw new NotImplementedException();
        }
        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            base.Draw(gameTime, spriteBatch, _cachorro);
        }
    }
}
